<!-- Author: Phoo Pwint Khine --> 
<!-- Last Modified: 11 Sep 2012 --> 
<?php 
error_reporting (E_ALL ^ E_NOTICE);
session_start();
if (isset($_SESSION['empty'])) {
		?>
        <script type="text/javascript">alert("You have no posts to view!"); </script>
        <?php
		unset($_SESSION['empty']);
	}
	if ($_SESSION['success']==true) {
		?>
        <script type="text/javascript">alert("Your post was added successfully!"); </script>
        <?php
		unset($_SESSION['success']);
	}
	
	 ?>